<?php
namespace app\index\controller;

use think\Controller;
use think\Db;
use think\Session;
use think\Config;
use think\Request;

class Base extends Controller 
{
    
    protected $prefix = '';
    protected $_module = '';
    protected $_controller = '';
    protected $_action = '';
    
    public function _initialize() {
        parent::_initialize();
        $this->prefix = Config::get('database.prefix');
        $request = Request::instance();
        $this->_module = $request->module();
        $this->_controller = $request->controller();
        $this->_action = $request->action();
    }
    
    /*
     * 空操作
     */
    public function _empty() {
        abort(404,'页面不存在啊，别乱入啊！');
    }
}
